/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: rei
 * Date: 2025-11-05
 * Time: 10:51
 */
public class Test {
    public static void main(String[] args) throws InterruptedException {
        MyBlockingQueue que = new MyBlockingQueue(5);
        que.put(1);
        que.put(5);
        que.put(4);
        que.put(3);
        que.put(2);

        System.out.println(que.take());
        System.out.println(que.take());
        System.out.println(que.take());
        System.out.println(que.take());
        System.out.println(que.take());
    }
}
